package lab03.test05;

import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

/**
 * Created by dell on 2017/12/28.
 */
public class Test {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String s;
        char[] a = new char[10];
        char[] b = new char[10];

        File file = new File("a.txt");
        try {
            FileWriter out = null;
            try {
                out = new FileWriter(file);
            } catch (IOException e) {
                e.printStackTrace();
            }
            s = scan.next();
            a = s.toCharArray();
            for (int i = 0; i < a.length; i++) {
                a[i] = (char) ((a[i] - 'a' + 1) % 26 + 'a');

            }
            try {
                out.write(a);
                out.close();
                FileReader in=new FileReader(file);
                in.read(b);
                System.out.println(b);
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }finally {

        }
    }
}
